package cn.edu.fzu.delivery.mapper;

import cn.edu.fzu.delivery.domain.entity.City;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yifan
 * @date 2022/11/6
 */
public interface CityMapper {

    City getById(@Param("id") Long id);

    /**
     * 根据省id获取城市列表
     *
     * @param provinceId 省id
     * @return
     */
    List<City> list(@Param("provinceId") Long provinceId);
}
